#version 440

layout (location = 0) out uvec4 color0;
layout (location = 1) out vec4 color1;

in VS_OUT
{
   vec3 ws_coords;
   vec3 vN;    
} fs_in;

uniform vec4 objColor;

void main (void)
{
   uvec4 outvec0 = uvec4 (0);
   vec4 outvec1 = vec4 (0);

   outvec0.x = packHalf2x16 (objColor.xy);
   outvec0.y = packHalf2x16 (vec2(objColor.z, fs_in.vN.x));
   outvec0.z = packHalf2x16 (fs_in.vN.yz);
   outvec0.w = 1;

   outvec1.xyz = fs_in.ws_coords;
   outvec1.w = 60.0;

   color0 = outvec0;
   color1 = outvec1;
}